<template>
    <div class="about-view">
      <!-- 页面标题 -->
      <section class="page-header">
        <h1 class="page-title" v-animate-on-scroll>关于安心医疗</h1>
        <p class="page-subtitle" v-animate-on-scroll>连接优质医疗资源，打造便捷就医体验</p>
      </section>
  
      <!-- 公司简介 -->
      <section class="about-section">
        <div class="section-container">
          <div class="section-header">
            <h2 class="section-title" v-animate-on-scroll>公司简介</h2>
            <p v-animate-on-scroll>致力于打造全国领先的医疗健康服务平台</p>
          </div>
  
          <div class="section-content">
            <div class="about-image" v-animate-on-scroll></div>
            <div class="about-text" v-animate-on-scroll>
              <p>安心医疗成立于2015年，是国内领先的互联网医疗健康服务平台。我们通过技术创新，连接患者、医生、医院、医药险等产业链各方，以专业、便捷、可信赖的医疗健康服务，为亿万家庭提供优质高效的医疗健康解决方案。</p>
            </div>
          </div>
        </div>
      </section>
  
      <!-- AI导诊 -->
      <section class="ai-intro">
        <div class="ai-container">
          <div class="ai-content">
            <h2 class="ai-title" v-animate-on-scroll>AI导诊</h2>
            <p class="ai-text" v-animate-on-scroll>利用先进的人工智能技术，为您提供精准的科室推荐和专家匹配服务。</p>
  
            <div class="ai-benefits">
              <div class="ai-benefit" v-animate-on-scroll>
                <i class="fas fa-crosshairs"></i>
                <div>
                  <h4>精准科室推荐</h4>
                  <p>结合症状、年龄、性别等因素，智能推荐最合适的就诊科室</p>
                </div>
              </div>
  
              <div class="ai-benefit" v-animate-on-scroll>
                <i class="fas fa-user-md"></i>
                <div>
                  <h4>专家匹配</h4>
                  <p>根据病情推荐擅长相关领域的专家医生，提高诊疗效率</p>
                </div>
              </div>
  
              <div class="ai-benefit" v-animate-on-scroll>
                <i class="fas fa-lightbulb"></i>
                <div>
                  <h4>健康建议</h4>
                  <p>提供个性化的健康管理建议和就诊前注意事项</p>
                </div>
              </div>
            </div>
  
            <button class="btn btn-primary" v-animate-on-scroll>
              <i class="fas fa-comment-medical"></i> 体验AI导诊
            </button>
          </div>
  
          <div class="ai-image" v-animate-on-scroll></div>
        </div>
      </section>
  
      <!-- 多医院预约 -->
      <section class="booking-section">
        <div class="booking-container">
          <div class="booking-image" v-animate-on-scroll></div>
          <div class="booking-content" v-animate-on-scroll>
            <h2 class="booking-title">多医院预约</h2>
            <p class="booking-text">支持多家医院的预约挂号服务，让您的就医更加便捷。</p>
            <button class="btn btn-primary">立即预约</button>
          </div>
        </div>
      </section>
    </div>
  </template>
  
  <script lang="ts" setup>
  import { onMounted } from 'vue';
  
  
  // 滚动动画
  const observer = new IntersectionObserver((entries) => {
    entries.forEach(entry => {
      if (entry.isIntersecting) {
        entry.target.classList.add('animate');
      }
    });
  }, { threshold: 0.15 });
  
  onMounted(() => {
    document.querySelectorAll('.animate').forEach(el => {
      observer.observe(el);
    });
  });
  </script>
  
  <style scoped lang="scss">
  // 基础布局和容器样式
  .about-view {
    width: 100%;
    overflow-x: hidden;
  }
  
  // 页面标题
  .page-header {
    background: linear-gradient(to right, var(--deep-blue), var(--primary-blue));
    color: white;
    padding: 80px 8% 60px;
    text-align: center;
  }
  
  .page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
  }
  
  .page-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
  }
  
  // 公司简介
  .about-section {
    padding: 100px 8%;
  }
  
  .section-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-teal);
    border-radius: 4px;
  }
  
  .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }
  
  .about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    background: url('https://images.unsplash.com/photo-1586773860418-d37222d8fdf3?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
  }
  
  .about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
  }
  
  .about-text p {
    margin-bottom: 20px;
  }
  
  // AI导诊
  .ai-intro {
    background: linear-gradient(to right, rgba(13, 110, 253, 0.1), rgba(13, 202, 240, 0.1));
    padding: 100px 8%;
    position: relative;
    overflow: hidden;
  }
  
  .ai-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }
  
  .ai-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    background: url('https://images.unsplash.com/photo-1578496479589-0bea7d978c08?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
  }
  
  .ai-content {
    position: relative;
    z-index: 2;
  }
  
  .ai-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 25px;
  }
  
  .ai-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 25px;
  }
  
  .ai-benefits {
    margin-top: 30px;
  }
  
  .ai-benefit {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .ai-benefit i {
    color: var(--accent-teal);
    font-size: 20px;
    margin-top: 5px;
  }
  
  // 多医院预约
  .booking-section {
    padding: 100px 8%;
  }
  
  .booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }
  
  .booking-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    background: url('https://images.unsplash.com/photo-1581595219318-1a5f9f08f5b1?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
  }
  
  .booking-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 25px;
  }
  
  .booking-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 25px;
  }
  
  
  // 动画效果
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
  }
  
  .delay-1 {
    animation-delay: 0.2s;
  }
  
  .delay-2 {
    animation-delay: 0.4s;
  }
  
  .delay-3 {
    animation-delay: 0.6s;
  }
  </style>